package crew.gwt.client.domain;

import java.io.Serializable;
import java.util.List;

public class OrderedEntitiesResponse<T extends PersistableEntity> implements Serializable{
	
	private List<T> entities;
	private Integer rowCt;
	
	private OrderedEntitiesResponse() {}
	
	public OrderedEntitiesResponse(List<T> entities, Integer rowCt) {
		this.entities = entities;
		this.rowCt = rowCt;
	}

	public List<T> getEntities() {
		return entities;
	}

	public Integer getRowCt() {
		return rowCt;
	}

	public void setEntities(List<T> entities) {
		this.entities = entities;
	}

	public void setRowCt(Integer rowCt) {
		this.rowCt = rowCt;
	}
}
